<include file="Index:header" />
<!--头部 end -->
<!--左栏 starts -->
<div class="container-fluid">
		<div class="row-fluid">
			<include file="left" />

			<div id="content" class="span10">
			<!-- content starts -->
<!--左栏 end -->
<ul class="breadcrumb">
      <li>
        <a href="__APP__/TIFAWEB_DSWJCMS.html">首页</a> <span class="divider">/</span>
      </li>
      <li class="active">满标待审</li>
</ul>
<table class="table table-striped table-bordered table-condensed" id="table">
            <thead>
              <tr>
                <th>用户名</th>
                <th>标题</th>
                <th>金额</th>
                <th>利率</th>
                <th>期限</th>
                <th>类型</th>
                <th>状态</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
<volist name="borrow" id="vo">
                <tr>
                <td>
                       {$vo.username}
                </td>
                <td>
                       {$vo.title}
                </td>
                <td>
                       {$vo.money}元
                </td>
                <td>
                       {$vo.rates}%
                </td>
                <td>
                       {$vo.deadlines}
                </td>
                <td>
                       {$vo.type_name}
                </td>
                <td>
                       {$vo.state_name}
                </td>
                <td>
                	<a href="#audit" data-toggle="modal" data-rel="tooltip" class="icon icon-color icon-book"title="复审" onclick="$('#up_id').val({$vo.id});"></a>
                </td>
              </tr>
			  <input name="id[]" type="hidden" value="{$vo.id}" />
</volist>
            </tbody>
          </table>
          <div class="pagination pagination-centered">
          <ul>{$page}</ul>
          </div>
<div>
</div>
<!--底部 -->
<!--复审 start-->
<div id="audit" class="modal hide fade in" >
    <div class="modal-header">
      <a class="close" data-dismiss="modal" >&times;</a>
      <h3>审核</h3>
    </div>
    <div class="modal-body cloan_top">
    <form method="post" >
        <input id="up_id" name="id" type="hidden" value="" />
        <input id="state" type="hidden" value="7" />
        <p class="form-inline">   
          <label class="radio"><input type="radio" name="st" value="7" checked onclick="$('#state').val(7)"/> 通过</label>
          <label class="radio"><input type="radio"  name="st"  value="16" onclick="$('#state').val(16)" /> 不通过</label>
        </p>
        <div class="span10">
          <a class="btn btn-primary" onclick="var id=$('#up_id').val();var state=$('#state').val();ajaxrefund(id,state);">
              确认提交
          </a>
      	</div>
    </form>
    </div>
</div>
<!--复审 end-->
<script>
function changeVerify(){
    var timenow = new Date().getTime();
    document.getElementById('verifyImg').src='__APP__/Public/verify/'+timenow;
}
function ajaxrefund(id,state){
	var loading='<div class="invest_loading"><div><img src="__PUBLIC__/bootstrap/img/ajax-loaders/ajax-loader-1.gif"/></div><div>处理中</div> </div>';
	$(".cloan_top").html(loading);
	$(".cloan_top").load("__APP__/TIFAWEB_DSWJCMS/Loan/borrowUpda", {id:id,state:state},function(){
		setTimeout("window.location.href='__APP__/TIFAWEB_DSWJCMS/Loan/pending.html'",3000); 
 	});	
}
</script>
<include file="Index:footer" />
